package com.bootdo.system.mapper;

import com.bootdo.system.domain.TbOrder;
import com.bootdo.system.domain.TbOrderExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface TbOrderMapper {
    long countByExample(TbOrderExample example);

    int deleteByExample(TbOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbOrder record);

    int insertSelective(TbOrder record);

    List<TbOrder> selectByExample(TbOrderExample example);

    TbOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByExample(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByPrimaryKeySelective(TbOrder record);

    int updateByPrimaryKey(TbOrder record);

	List<TbOrder> list(Map<String, Object> map);

	int count(Map<String, Object> map);
	
	List<TbOrder> listx(@Param("openId")String openId);

	List<TbOrder> listx2djs(@Param("openId")String openId);

	String getDirect2Order(@Param("userId") Integer userId, @Param("paytime") String paytime);

	String getProfit2Order(@Param("userId") Integer userId, @Param("paytime") String paytime);

	int getDirect2OrderNum(@Param("userId") Integer userId, @Param("paytime") String paytime);

	String getNum(@Param("openId")String openId);

	List<TbOrder> list2(Map<String, Object> map);

	int count2(Map<String, Object> map);

	int count3(Map<String, Object> map);

	String getProfit2Order2(@Param("userId") Integer userId, @Param("paytime") String paytime);

	List<Map<String, Object>> list5(Map<String, Object> map);

	int count5(Map<String, Object> map);

	List<Map<String, Object>> list6(Map<String, Object> map);

	int count6(Map<String, Object> map);

	String getProfit2Order3(@Param("openId") String openId,@Param("paytime") String paytime);

	int getDirect2OrderNum2(@Param("openId")String openId,@Param("paytime") String paytime);

	List<TbOrder> listx5(@Param("openId")String openId,@Param("status") int status);
}